package com.easy.common.jdbc;


public class PageInfo {

	private int rows = 10;// 每页显示的记录数

	private int page = 0;// 当前第几页

	private String order = "desc";// 排序

	private String sort;// 排序的列名
	
	private String filterRules = "[]";

	public PageInfo() {

	}

	public PageInfo(int rows, int page, String order, String sort) {
		this.rows = rows;
		this.page = page;
		this.order = order;
		this.sort = sort;
	}
	public PageInfo(int rows) {
		this.rows = rows;
	}
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}
	
	public String getFilterRules() {
		return filterRules;
	}

	public void setFilterRules(String filterRules) {
		this.filterRules = filterRules;
	}
}
